package com.fgba.express.data.mapstruct;

import com.fgba.express.core.mapstruct.BaseStruct;
import com.fgba.express.data.dto.CourierDto;
import com.fgba.express.data.entity.Courier;
import com.fgba.express.data.search.CourierSearch;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

/**
 * 快递员实体和快递员Model之间的对象转换
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface CourierStruct extends BaseStruct<Courier, CourierDto, CourierSearch> {
    @Override
    Courier entityConvertDto(CourierDto dto);

    @Override
    CourierDto dtoConvertEntity(Courier entity);
}
